Skip to content

Fix Japanese/etc fonts not rendering on linux#5992

Closed
nibbbl wants to merge 1 commit into
secondlife:project/lua_editorfrom
nibbbl:fix-cjk-font
Closed

Fix Japanese/etc fonts not rendering on linux#5992
nibbbl wants to merge 1 commit into
secondlife:project/lua_editorfrom
nibbbl:fix-cjk-font

Conversation

@nibbbl

@nibbbl nibbbl commented Jul 12, 2026

Copy link
Copy Markdown

Fix Japanese/etc fonts not rendering on linux

Ask FontConfig for a handful of best matches for major scripts so that valid CJK/Indic fonts are loaded on linux.

As a small caveat this can result in more than max_font_count_cutoff fonts being loaded: up to 58.

Closes #5991


Checklist

Please ensure the following before requesting review:

  • I have provided a clear title and detailed description for this pull request.
  • If useful, I have included media such as screenshots and video to show off my changes.
  • The PR is linked to a relevant issue with sufficient context.
  • I have tested the changes locally and verified they work as intended.
  • All new and existing tests pass.
  • Code follows the project's style guidelines.
  • Documentation has been updated if needed.
  • Any dependent changes have been merged and published in downstream modules
  • I have reviewed the contributing guidelines.

Ask FontConfig for a handful of best matches for major scripts so that
valid CJK/Indic fonts are loaded on linux.

Closes secondlife#5991
@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@nibbbl

nibbbl commented Jul 12, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA


// Ask FontConfig directly for common living scripts first, so they aren't
// crowded out of max_font_count_cutoff by other fonts.
static const char* const important_langs[] = {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This list is non-exhaustive and best effort. A handful of other languages are candidates for inclusion: he, ar, bn, etc.

@nibbbl

nibbbl commented Jul 12, 2026

Copy link
Copy Markdown
Author

Supplanted by #5993

@nibbbl nibbbl closed this Jul 12, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant